import request from '@/utils/request'

// 查询监测设备信息列表
export function listEquipmentinfo(query) {
  return request({
    url: '/dr/equipmentinfo/list',
    method: 'get',
    params: query
  })
}

// 查询监测设备信息详细
export function getEquipmentinfo(equipmentid) {
  return request({
    url: '/dr/equipmentinfo/' + equipmentid,
    method: 'get'
  })
}

// 新增监测设备信息
export function addEquipmentinfo(data) {
  return request({
    url: '/dr/equipmentinfo',
    method: 'post',
    data: data
  })
}

// 修改监测设备信息
export function updateEquipmentinfo(data) {
  return request({
    url: '/dr/equipmentinfo',
    method: 'put',
    data: data
  })
}

// 删除监测设备信息
export function delEquipmentinfo(equipmentid) {
  return request({
    url: '/dr/equipmentinfo/' + equipmentid,
    method: 'delete'
  })
}
